$(function() {
    let index = parent.layer.getFrameIndex(window.name);
    parent.layer.iframeAuto(index);

    $(".select-item-dfmeabulk").on("click", function() {
    	var $this = $(this);
        var id = $this.data("id");
        if (parent.layui.$("td input[name='bulkId'][value='" + id + "']").size() == 0) {
            let $input = parent.clickTarget;
            $input.val($this.data('code'));
            $input.siblings("input[name='bulkId']").val(id);
            $input.parentsUntil('tbody').find('.delete-row').attr('id', id);
        } else {
            parent.layer.tips("已选择", ".delete-row[id='" + id + "']", {
                time : 3000
            });
        }
        parent.layer.close(index);
    });

     

});